﻿using System.ComponentModel;
using Loki.Utils;

namespace Loki.UI
{
    public class RibbonCategoryViewModel : ViewModelBase
    {
        #region Name

        private static PropertyChangedEventArgs _NameChangedArgs = ObservableHelper.CreateChangedArgs<RibbonCategoryViewModel>(x => x.Name);

        private static PropertyChangingEventArgs _NameChangingArgs = ObservableHelper.CreateChangingArgs<RibbonCategoryViewModel>(x => x.Name);

        private string _Name;

        public string Name
        {
            get
            {
                return _Name;
            }

            set
            {
                if (value != _Name)
                {
                    NotifyChanging(_NameChangingArgs);
                    _Name = value;
                    NotifyChanged(_NameChangedArgs);
                }
            }
        }

        #endregion Name

        public BindableCollection<RibbonPageViewModel> Pages { get; private set; }

        public RibbonCategoryViewModel()
        {
            Pages = new BindableCollection<RibbonPageViewModel>();
        }
    }
}